package com.spring.controller.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestConfig {

	public static void main(String[] args) {
		ApplicationContext appContext = new ClassPathXmlApplicationContext("common-beans.xml");
		MongoConfig connInfo = appContext.getBean(MongoConfig.class);
        System.out.println(connInfo.getHost());
        System.out.println(connInfo.getName());
        System.out.println(connInfo.getPort());
	}

}
